#include<stdio.h>
int main(void)
{
	int a,c;
	printf("Please input a number\n");
	scanf_s("%d", &a);
	c = a / 100 + a / 10 % 10 * 10 + a % 100 % 10 * 100;
	printf("%d",c);
	return 0;
}